package com.custom.web;

import com.custom.starter.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: 自定义starter 测试</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2018</p>
 * <p>Company: wang.yalei@fujisoft-china.com</p>
 *
 * @author wangyl
 * @version 1.0
 * @date 2020/6/29 10:38
 */

@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/hello")
    public String hello() {
        return helloService.sayHello("Wyl");
    }
}
